package com.dycs.utils;

public class ResultUtil {

    public static <T> Result<T> success(T data) {
        return new Result<>(200,"success",data);
    }

    public static <T> Result<T> error(int code, String message) {
        return new Result<>(code,message,null);
    }

}
